//
//  ViewController.h
//  ox
//
//  Created by 喻杰 on 2016/10/26.
//  Copyright © 2016年 fengge. All rights reserved.
//

#import "BaseViewController.h"
#import "BaiduMapHeader.h"
#import "DBHelper.h"
#import "OxRecordModel.h"
#import "PhotoWallController.h"
typedef void(^ChooseAddress)(CGFloat lat ,CGFloat lon, NSString* poiName, NSString * address);

@interface ViewController : BaseViewController<BMKMapViewDelegate,BMKLocationServiceDelegate,BMKGeoCodeSearchDelegate>

@property(nonatomic,strong) BMKMapView * map;

@property(nonatomic,strong) BMKLocationService *locationService;

@property(nonatomic,strong) BMKGeoCodeSearch* search;

@property(nonatomic,strong) UIImageView * center;

@property(nonatomic,strong) ChooseAddress chooseAddress;

@property(nonatomic,strong) DBHelper* helper;

//定位信息
@property (nonatomic)  CGFloat lat;
@property (nonatomic)  CGFloat lon;
@property (nonatomic,strong)  NSString* poiName;
@property (nonatomic,strong) NSString* address;

@property(nonatomic,strong) NSMutableArray<NSMutableDictionary*>* arr;
@property(nonatomic) NSInteger index;
@property(nonatomic) NSInteger page;
@property(nonatomic) NSInteger pageSize;

-(void) chooseAddress:(UIBarButtonItem *) sender;
-(void)nextFoot:(UIBarButtonItem*) sender;

@end

